package it.cst.util;

import it.cst.entity.User;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;


@SuppressWarnings("rawtypes")
public class Paginator {
	private Collection objList;
	private Boolean hasPrevItems;
	private Object firstItem;
	private Object lastItem;
	private String userFilter;
	private List<User> allUserList;
	private Integer totItems;
	
	public Integer getTotItems() {
		return totItems;
	}
	public void setTotItems(Integer totItems) {
		this.totItems = totItems;
	}
	public List<User> getAllUserList() {
		return allUserList;
	}
	public void setAllUserList(List<User> allUserList) {
		this.allUserList = allUserList;
	}
	public String getUserFilter() {
		return userFilter;
	}
	public void setUserFilter(String userFilter) {
		this.userFilter = userFilter;
	}
	public String getDateFilter() {
		return dateFilter;
	}
	public void setDateFilter(String dateFilter) {
		this.dateFilter = dateFilter;
	}
	private String dateFilter;
	public Object getFirstItem() {
		return firstItem;
	}
	public void setFirstItem(Object firstItem) {
		this.firstItem = firstItem;
	}
	public Object getLastItem() {
		return lastItem;
	}
	public void setLastItem(Object lastItem) {
		this.lastItem = lastItem;
	}
	public Collection getObjList() {
		return objList;
	}
	public void setObjList(Collection objList) {
		this.objList = objList;
	}
	public Boolean getHasPrevItems() {
		return hasPrevItems;
	}
	public void setHasPrevItems(Boolean hasPrevItems) {
		this.hasPrevItems = hasPrevItems;
	}
	public Boolean getHasNextItems() {
		return hasNextItems;
	}
	public void setHasNextItems(Boolean hasNextItems) {
		this.hasNextItems = hasNextItems;
	}
	private Boolean hasNextItems;
	
	
	public Paginator(){
		objList = new ArrayList<Object>();
		hasPrevItems = false;
		hasNextItems = false;
		totItems = 0;
	}
}
